package com.tensquare.qa.client.impl;
/*
 *ClassName:LabelClientImpl
 *Description:熔断实现类，当LabelClient接口的某个方法调用异常时会执行熔断类里对应的方法
 *@author:可爱的大鸭子
 */

import com.tensquare.qa.client.LabelClient;
import entity.Result;
import entity.StatusCode;
import org.springframework.stereotype.Component;

@Component
public class LabelClientImpl implements LabelClient {
    @Override
    public Result findById(String id) {
        return new Result(false, StatusCode.ERROR,"熔断器启动了");
    }
}
